#include <cstdarg>
#include <iostream>

double VaSum(const char *fmt, ...);

int main() {
    std::cout << "test1: " << VaSum("%d, %d, %f, %s", 0, -2, -2.0, "4") << std::endl;
    std::cout << "test2: "
              << VaSum("%d, %d, %d, %d, %d, %d, %d, %d, %d, %d", 20000, 213200, 213412, 523045, 52043024212, 123214, 1235012, 1424023, 532994, 1041)
              << std::endl;
    std::cout << "test3: "
              << VaSum("%f, %f, %f, %f, %f, %f, %f, %f, %f, %f", -1243.3412, -124123.45, 52345.213, 1245412.3123, 2134.213, 213.214, 21354.1234, 59148.124,
                       4491.124, 214.11234)
              << std::endl;
}